home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / c / hce.lha / HCE / LibSource / AmigaLib / FD2STUBS / FD2Stubs.doc next >
Encoding:
Text File  |  1992-09-02  |  1.5 KB  |  34 lines

  1. FD2Stubs - create interface stubs from .fd-files
  2.  
  3. Usage: FD2Stubs libraryname (_lib.fd will be added)
  4.  
  5. DON'T specify a path name, CD to the .fd-directory!
  6. The program creates many files 'T:librarynameNNN',
  7. one file for each library function, and a script file
  8. 'T:Makelibraryname' which will, if called via Execute,
  9. generate the file 'T:libraryname.stubs'. You can 'Join'
  10. that file together with those generated from other .fd-files
  11. to the finally file 'stubs.lib'. Assign T: to RAM:T,
  12. copy A68k, Join, Rename and Delete to RAM: and type
  13. 'path RAM: add' before running the produced scriptfile.
  14.  
  15. This is Public Domain by Detlef Wuerkner.
  16.  
  17. The program needs CClib.library V3.0 to be found in 'libs:'.
  18.  
  19. For easier use, you should write a batch file. See for example
  20. 'HCC:s/MakeStubsLib'.
  21.  
  22. Something about amiga.lib:
  23. --------------------------
  24. The program creates shorter stubs than that in amiga.lib, since d0,d1,a0,a1,
  25. D2 and A6 are NOT saved. Therefore, I can't say if the stubs would work
  26. with Aztec or Lattice. If possible, 'JMP' instead of 'JSR' is used.
  27. If you have the original Commodore 1.3 amiga.lib:
  28. CreateTask(), fgetc() and getchar() of amiga.lib use A6 as local stack pointer
  29. (link, unlk). If you want to use this routines: Do NOT mix them with stub code
  30. from FD2Stubs, since the stub codes would destroy A6. All other routines should
  31. work even when mixed (except fpbcd(), this never worked).
  32. The source code for CreateTask() can be found in the Addison-Wesley
  33. 'Includes and Autodocs' manual.
  34.